/**
 * Created by yfx on 2016-10-24.
 */
import { createSelector } from 'reselect'
//取出state值的相应方法
const state = (state) => state;
//组装对象方法
export default  createSelector(
    [state],
    (state) => {
        return {
            headerRight: state.right.headerRight,
            isLogin: state.login.isLogin,
            user:state.login.user
        }
    }
)